import request from '@/utils/request'

// 查询会员钱包列表
export function listPurseInfo(query) {
  return request({
    url: '/net/purseInfo/list',
    method: 'get',
    params: query
  })
}

// 查询会员钱包详细
export function getPurseInfo(id) {
  return request({
    url: '/net/purseInfo/' + id,
    method: 'get'
  })
}

// 新增会员钱包
export function addPurseInfo(data) {
  return request({
    url: '/net/purseInfo',
    method: 'post',
    data: data
  })
}

// 修改会员钱包
export function updatePurseInfo(data) {
  return request({
    url: '/net/purseInfo',
    method: 'put',
    data: data
  })
}

// 删除会员钱包
export function delPurseInfo(id) {
  return request({
    url: '/net/purseInfo/' + id,
    method: 'delete'
  })
}
